package com.zxst.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zxst.entity.Goods;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zxst
 * @since 2025-06-24
 */
public interface GoodsMapper extends BaseMapper<Goods> {

    @Select("select *  from   goods  where gid in (SELECT DISTINCT g_fk FROM  orders)")
    List<Goods> getOrderProductInfo();
}
